session: fix segment manager init condition