Modify behavior of shared resources.

With this change, modules that use the no argument
form of the usesResource function will not run
at the same time as any other module that has
declared any shared resource or used the no argument
usesResource function.