static_hash_maps: retry perfect hash generation when it fails