Create threadadd.c

Without locking the critcal section , addition would not yield the expected results.