Teach LockFile how to read the current value from a loose ref