Fix test failures on unthreaded perls on FreeBSD