Performance Improvements (5) (#6076)
### Description
The `AsyncModule` code generation in every ESM flags it as "needs
availability info" which causes code generation to be duplicated for
each entrypoints.
This improves it a little bit by checking is the module is an async
module before. It also fixes a bug where availability is not correct
reduced and only passes the availability root to async module
computation instead of the full availability info.
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->
Closes WEB-1697