SetAsyncLoadingAllowed

Allows or disallows async loading (for example async loading is not allowed after the final flush on exit)