Fix singleton object created on temporary thread
Merge pull request #3824 from Atlante45/fix_ac_deadlock

Fix singleton object created on temporary thread