'Acquire an exclusive lock on the currently-loaded session data.'

def acquire_lock(self):

    self.locked = True
    self.locks.setdefault(self.id, threading.RLock()).acquire()
    if self.debug:
        cherrypy.log('Lock    acquired.', 'TOOLS.SESSIONS')
