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