fix runtime exception when create directory

due to multi-threads request make directory operations.
change to synchronizedly process make directory request