Add API needed for background indexing in SourceKit-LSP (#7562)
- **Explanation**: Adds a couple of APIs to the `SourceKitLSPAPI` module
that are needed for background indexing in SourceKit-LSP
- **Scope**: Purely additive API
- **Risk**: Very low, just adds new API
- **Testing**: n/a
- **Issue**: n/a
- **Reviewer**: @MaxDesiatov and @bnbarham on
https://github.com/apple/swift-package-manager/pull/7540
https://github.com/apple/swift-package-manager/pull/7555 respectively