def get_state_dir(self): self.sesslock.acquire() try: return SessionConfigInterface.get_state_dir(self) finally: self.sesslock.release()