Removing useless asynchronism in packaged mode.

When loading a packaged module with a synchronous request, the loaded module was not synchronously available because some asynchronism was added in the promises chain. This commit fixes this issue.