Extract a signal specification from a Prolog term and store as an
integer signal number in sig. The specification is an
integer, a lowercase signal name without SIG or the full
signal name. These refer to the same: 9, kill
and SIGKILL. Leaves a typed, domain or instantiation error
if the conversion fails.