packed_git: convert pack_local flag into a bitfield and add pack_keep