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

session are saved after register
style (session) avoid unnecessary register (refs #4355)
style (report) encode url (refs #4355)
Merge pull request #1038 from Eric-Brison/3.2-I4355

unlock session when register (closes #4355)