[Ide] Ensure ThreadedAsyncOperation always fires completed event

Fire immediately when subscribing if already completed
[Ide] Ensure custom tools complete before when building

Fixed BXC14993 - Build should wait for code generators to finish