This could happen when an ongoing thread had been left running after
the EConfigLookup instance had been freed, even the task itself had
been cancelled. The thread pool free reorder fixes it, together with
the changed way to free it. The other parts avoid unnecessary runtime
warnings in case the crash conditions would be triggered.