Qt GUI: Dead Lock/Unlock Code Removed from the Coin Control