NEXUS-5468: Generalizing the solution

To not be specific for PreparedContentLocator, but instead
make them proper "Closeable"s. Same for FS RLS, it cares about
Closeable, not about given ContentLocator implementation.