Refactor machinery for skipping inline function bodies that have already been parsed in other frontend actions.
Mostly just:
- Changed naming with the expectation that this code is to be moved from its original context to libIndex.
- Added couple asserts.
- Added comments.
"SharedParsedRegions"? "ThreadSafeParsedRegions"?