avoid file write race condition at generating Proxy and Hydrator classes