[threading] Use a RT signal for abort when possible.