Ensure LockManager uses a consistent lock order