Fix snapshot deadlock. Bench test.