unlock session when register (closes #4355)