accelgroup: Fix a buffer overrun

gtk_accelerator_parse_with_keycode can
overrun its buffer for certain inputs.

Fixes: #2325
6 jobs for gtk-3-24 in 16 minutes and 58 seconds (queued for 2 seconds)