'Unlock the given instance.'

def unlock(self, context, instance):

    context = context.elevated()
    LOG.debug('Unlocking', instance=instance)
    instance.locked = False
    instance.locked_by = None
    instance.save()
