[Bug 14840] kernel32: thread.ok fails in OpenSolaris but not Linux