wait for thread to complete primesieve