[core] restart in-place.

Use exec to restart fcitx in-place rather than as a child process.

Known issue:

Broke custom xmodmap, example:

 remove Lock = Caps_Lock
 remove control = Control_R
 keysym Caps_Lock = Control_R
 add control = Control_R