Always create an empty autoload meta target for each module.

This is needed so that test drivers pick up autoload target
dependencies for the module they are testing.
Perform auto-load sanity checks only if the module is actually enabled.
Merge branch 'bug-18040-autoload-dependencies'