examples/multi_process: fix client crash with sparse ports