Macro to aquire std::syn::RwLock or std::syn::Mutex locks with consistent order to prevent deadlock.
std::syn::RwLock
std::syn::Mutex