Screw this. Just lock the whole thing. Not like you call _clean_up_client so often that it will hurt performance.