fixed threading bug where the scene procedural's allRenderedSignal() could get called more than once
reverted to atomic<int> approach, with an atomic decrement and check instead. Also mutexed the allRendered signal call
Merge pull request #1088 from davidsminor/allRenderedSignalFix

fixed scene procedural's allRenderedSignal() threading bug