'syncProcess': don't restore handlers before the child finished.

Fixes #1560.
Bump Cabal version number to 1.18.1.2