Prevent race condition. create folder synchronous on server