Fixed a bug where the service registry was holding a reference to a bundle after it has released all of its used services; this was inhibiting garbage collection.