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

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
`ProtocolGraphWalker._is_satisfied` should not travel all the paths.