Use `RMutex` for locks (references #46).
Use `RMutex` for locks (references #46).

There seem to be some lock re-entrancy bugs in `BatIO` that cause
hangs when we use a plain mutex for synchronization.  Using RMutex
until those problems are fixed or we determine that they are inherent.

bennn/batteries-included