code: def unlock(self):
          
          return self._encode_invoke(lock_unlock_codec, thread_id=thread_id(),
                                     reference_id=self.reference_id_generator.get_and_increment())
docs: Releases the lock.