realm: remove memory_query_test and merge it into the machine_config test
Given that we do not want to use the Runtime in the unit test, I plan to remove the memory_query unit test. This PR contains:
- remove the memory query test, move the test into the machine config.
- add a function
module_avail
into theRuntime
, such that we can query if a module is loaded without relying on the REALM_USE_XYZ.