acquire exclusive lock to file write when generating hydrators