A python util that wraps all the "public" methods of a class with an RLock