(fix) (session) correct register lock (refs #4355)

session are saved after register