fix failures in scala-reflect thread retention