[BZ-1073577] synchronize ksession marshaller
(cherry picked from commit b83edb642bcdbf63bf6a1f9fb534295f57130bbe)