An easy (but hacky) way to call a function in a separate thread in C