pack-refs: always refresh after taking the lock file