ReentrantFlock is a reentrant/recursive flock. WWW: https://github.com/sonots/reentrant_flock