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)
> do we really want to retry 1000 times?
The implementations for createTempFile and createTempDirectory(Java 7+) loop indefinitely until a unique name is found. The guava implementation (com.google.common.io.Files.createTempDir()) retries 10 000 times.
Considering this it might be a good idea even to increase it :)