send-pack: check ref->status before updating tracking refs