Fixing a problem with thread creation signal order dependency