better locking for account guard