anidb: (*cacheDir).Get(): reduce the time a file lock is retained

When reading from cache, read the entire file into a buffer before
attempting to decode; release the lock as soon as the read is done.

Also move the parameter sanity check to be earlier in the method.
anidb: Remove commented out code