make sure lock is created