core: also add session_id and set_session_id to the argument filter.

(cherry picked from commit f280ace204fb3a50411f5d79626a605ea1ad5744)