[tor-commits] [nyx/master] Consistently use 'with' for locking