skip sleeping 10 ms in lock for writing when not needed