Since we have the one boat per nation rule, they are actually mathematically guaranteed a quota. Potentially boats from the B Final will also qualify.
Edit: I guess technically we could have a scenario where Algeria, Egypt, Tunisia and Zimbabwe finish with the same rank and all four nations choose the same gender