Locking an acelerator group prevents the accelerators contained
within it to be changed during runtime. Refer to
gtkAccelMapChangeEntry about runtime accelerator changes.
If called more than once, accel.group remains locked until
gtkAccelGroupUnlock has been called an equivalent number
of times.