[LibFuzzer] Fix sending SIGALRM signal to main thread on Mac OSX.
This replaces the Linux only implementation with an implementation that
relies on pthread_kill() which is more portable. For this to work
the Fuzzer now records the thread it was created in (presumably the main
thread).
This isn't an ideal fix because now we have a pthreads dependency
but arguably if we wanted portability we shouldn't be using signals
either.