[BZ-1058687] fix SessionPseudoClock on legacy 5 API
(cherry picked from commit 9a65e58e8e3722ee1d547ab603809343827f1621)