fix deletion of branches stored in packed-refs broken since 29606af7a3a58767bf817a38035490899609d13e