'Helper method to reset the lockhandler on an already puppeted object'

def _recache_locks(self, player):

    if self.session:
        char = self.session.puppet
        if char:
            char.locks.reset()
    player.locks.reset()
