lockfiles: Add initializer for service
Created by: efritz
This PR updates the dependencies service and lockfiles service to create themselves through this global factory pattern I'm trying out to make cross-team API instantiation easy. This moves the creation of the depStore and the lockfile service from inline/the ctor to the global factory for the service.
Test plan
Unit and integration tests.