adding condition on Lock example