Added an `IsBuilt` property and `EnsureNotBuilt()` helper to `Factory` class to restrict modifications to the service collection once the service provider has been built. This ensures immutability and prevents runtime inconsistencies after initialization.