session-test: Update callback function signature

Instead just silencing the warning as in 84984e919ab7 ("session-utils:
Remove -Wcast-function-type from build"), update the code. This avoids
warnings from older gcc which do not know -Wcast-function-type.
1 file changed