fixed scene procedural's allRenderedSignal() threading bug

I wasn't mutexing the counter properly, leading to situations where the signal could get called more than once. This was leading to sporadic crashes when using the ScriptProcedural - I believe this was related to the fact that the slot removes the connection while it's running.