ReceivePackHandler: only compute sorted refs if they will be used.