generate_phonemes: fix space with `--phonemes`

When open/close brackets are not specified (e.g. via the `--phonemes`)
option, the need_space flag should not be cleared when processing
the brackets as no text is outputted in this instance.