Add ThreadDetach() function in fbthread.bi