Make threads detached, not joinable

To avoid running out of resources, since we never join the threads later.
do not ignore return value of pthread_create