syllable: fix start/end of syllable detection

This fixes the issues with the phoneme_stress test cases.