MDL-22043 mod_forum: Fix toggle subscription editing button behaviour

Update the user session property before generating the button which relies
upon it.