initdb: Suppress dynamic shared memory when probing for max_connections.

This might not be the right long-term solution here, but it will
hopefully turn the buildfarm green again.

Oversight noted by Andres Freund