NEXUS-5468: Applying original parts

Instead of introducing new custom method. PreparedContentLocator
made plain Closeable. Using guava Closeables to
make it closed.