Obtain a lock when clearing account balances