Fixed broken GCODE viewer / concurrent settings requests
Fixed broken GCODE viewer / concurrent settings requests

The GCODE viewer settings callback was not properly called, hence the
viewer was not initialized properly.

Changed prevention of concurrent settings requests to properly handle
the situation where the registered settings callbacks might be extended
through another callback.
(cherry picked from commit 7d6462b)

dansantee/OctoPrint,Salandora/OctoPrint,nicanor-romero/OctoPrint,mcanes/OctoPrint,CapnBry/OctoPrint,mcanes/OctoPrint,eliasbakken/OctoPrint,leductan-nguyen/RaionPi,eliasbakken/OctoPrint,masterhou/OctoPrint,Jaesin/OctoPrint,ryanneufeld/OctoPrint,leductan-nguyen/RaionPi,dansantee/OctoPrint,MaxOLydian/OctoPrint,beeverycreative/BEEweb,MoonshineSG/OctoPrint,bicephale/OctoPrint,ErikDeBruijn/OctoPrint,CapnBry/OctoPrint,shohei/Octoprint,MoonshineSG/OctoPrint,Mikk36/OctoPrint,mcanes/OctoPrint,CapnBry/OctoPrint,eddieparker/OctoPrint,dragondgold/OctoPrint,shohei/Octoprint,Salandora/OctoPrint,Javierma/OctoPrint-TFG,Javierma/OctoPrint-TFG,nickverschoor/OctoPrint,nickverschoor/OctoPrint,chriskoz/OctoPrint,JackGavin13/octoprint-test-not-finished,dragondgold/OctoPrint,senttech/OctoPrint,foosel/OctoPrint,Mikk36/OctoPrint,ryanneufeld/OctoPrint,beeverycreative/BEEweb,JackGavin13/octoprint-test-not-finished,shohei/Octoprint,foosel/OctoPrint,masterhou/OctoPrint,leductan-nguyen/RaionPi,Salandora/OctoPrint,Jaesin/OctoPrint,bicephale/OctoPrint,beeverycreative/BEEweb,MaxOLydian/OctoPrint,Jaesin/OctoPrint,Mikk36/OctoPrint,shohei/Octoprint,beeverycreative/BEEweb,nicanor-romero/OctoPrint,MoonshineSG/OctoPrint,dansantee/OctoPrint,CapnBry/OctoPrint,ErikDeBruijn/OctoPrint,foosel/OctoPrint,senttech/OctoPrint,nickverschoor/OctoPrint,ryanneufeld/OctoPrint,chriskoz/OctoPrint,Skeen/OctoPrint,punkkeks/OctoPrint,Javierma/OctoPrint-TFG,Javierma/OctoPrint-TFG,Skeen/OctoPrint,nicanor-romero/OctoPrint,ryanneufeld/OctoPrint,punkkeks/OctoPrint,MoonshineSG/OctoPrint,Jaesin/OctoPrint,chriskoz/OctoPrint,JackGavin13/octoprint-test-not-finished,Skeen/OctoPrint,bicephale/OctoPrint,eddieparker/OctoPrint,masterhou/OctoPrint,eliasbakken/OctoPrint,shohei/Octoprint,chriskoz/OctoPrint,leductan-nguyen/RaionPi,bicephale/OctoPrint,ErikDeBruijn/OctoPrint,nickverschoor/OctoPrint,MaxOLydian/OctoPrint,Salandora/OctoPrint,eddieparker/OctoPrint,foosel/OctoPrint,senttech/OctoPrint,JackGavin13/octoprint-test-not-finished,punkkeks/OctoPrint,dragondgold/OctoPrint,senttech/OctoPrint