use mkdir for lock