PYTHON-436 use gevent.thread.allocate_lock() instead of RLock to
emulate threading.Lock exactly.