JS: fix deadlock in the window management code
JS: fix deadlock in the window management code

Don't hold the windowlist lock while trying to bring the window to the front,
this can deadlock the AWT event dispatch thread against the renderthread causing
neither to make any forward progress.

Signed-off-by: Harvey Harrison <eadbd6b462bf3c97df0300a934c12bc2e5d1fe51@ausenco.com>

jaamsim/jaamsim,jaamsim/jaamsim,jaamsim/jaamsim,jaamsim/jaamsim