Fix a regression in passing signal arguments in SignalHook.

The recent sandboxing of SignalHook broke the passing of arguments to
the callback. This fixes that by passing kwargs, and adds a unit test to
ensure it doesn't break again.

Reviewed at https://reviews.reviewboard.org/r/6580/