A simple reentrant/recursive mutex for ruby