It would be best if you used `with_lock` method. It's exactly what we need.