Check whether the read lock could be acquired before querying the file metadata