Corrected use of pthreads in forwardingElement.cpp