fix runtime exception when create directory

multi-threads request make directory operations, leads up to inconsistent state of one particular directory.
So change to synchronizedly process make directory request.