Bind all execution segments to the same thread.

Closes #489.