Checks if the value at index is a thread.
index
bool isThread([int index = -1]) => lua_isthread(L, index);