session: fix compilation when SESSION_DEBUG is on