Workaround hang in Toolkit.<clinit>.