(ITS#5254) core dump on Solaris 9 when with threads