fn unique_pack_key(key: &str, packs: &BTreeMap<String, Pack>) -> String
Generate an unique pack key that does not conflict with any existing open packs.