Fix for ceylon/ceylon-compiler#1801: except for base modules, always register them async

in the metamodel so that there's never a lock on jboss modules. also, count the number of
async threads so we can wait for them to be done