[rdb] Fixes RDB support for gevent.  Closes #1148