fix the not-master has-lock conditional