code revision "session db.c" when updated session->dying_time in some functions to avoid concurrency.