simplify locking (use a single lock, no deadlock possible)