lock first