Adding additional parameter to create_thread

Adding additional parameter to create thread to be able to synchronize properly with the start of the thread function (this fixes #1253: hpx::thread defects)