Update sidpithread.c

Added a semaphore for the reset