fix minor bugs on sessionmanager, mainly on locking sessions, and differentiate network session between default custom session