Don't try to pack symbolic refs

If there were symbolic refs among the loose refs then the code to create packed-refs would fail trying to parse the OID out of them (where Git just skips trying to pack them).  This fixes it.