Fixed possible deadlock in the NEWT to AWT event forwarding implementation