Prevent mkdir failure due to race condition