def lock(self):
        """ Lock the wallet database
        """
        lock_ok = False
        if self.store.is_encrypted():