fix intermitent failure in scala-reflect thread retention test