Fix failing tests

  * brooklyn.util.ResourceUtilsTest.testGetResourceViaClasspathWithoutPrefix() fails on windows paths when OSGi is used
  * Explicitly wait for osgi framework shutdown before deleting the cache folder so all files are unlocked
  * LocationUsageTrackingTest.testUsageIncludesStartAndStopEvents - the test excludes the start and stop ms from the range of possible values
  * Temporary file and folder creation wasn't deterministic, resulting in unexpected exceptions
  * UsageResourceTest - guarantee the 1ms delay that the test assumes at specific points (can't use dates in the future)
I chose the counter so that the tests finish in less than a second on my system while still failing frequently on the old implementation. Considering that there might be slower systems than mine it is a good idea to put it in integration.