pool: Fix race condition that leads to orphaned files

Using FileNotInCacheException cause the chimera registration to be cleared.
Clearly we don't want this when the file is actually in the pool and just
happens to be in a state in which it isn't accessible.

This patch changes the exception to LockedCacheException.

This is an alternative to patch: https://rb.dcache.org/r/5801

Target: trunk
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Request: 2.2
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7103/
(cherry picked from commit ade506eb0c921bdeb4284d42e7c247794b3e5d1a)

Conflicts:
	modules/dcache/src/main/java/org/dcache/pool/repository/Repository.java
	modules/dcache/src/main/java/org/dcache/pool/repository/v5/CacheRepositoryV5.java
Suppress nfs' file protocol from being published

The dcache-info-provider publishes all doors as endpoints by default. A
couple of doors are already configured to be excluded from this, but the
nfs door isn't and causes an file://xyz/ endpoint to be published.

Ticket: 8365
Acked-by:
Target: master
Request: 2.9
Request: 2.6
Request: 2.2
Require-book: no
Require-notes: yes
Merge pull request #682 from kschwank/2.2

Suppress nfs' file protocol from being published
change file to nfs for suppressing nfs doors in 2.2
Merge pull request #685 from kschwank/2.2

change file to nfs for suppressing nfs doors in 2.2
Merge pull request #686 from gbehrmann/fix/2.2/rb7103

pool: Fix race condition that leads to orphaned files
Prepare for 2.2.27 release
Bump version for next release cycle