Limit wait time - it seems that some JVMs occasionally fail to notify = deadlock

Signed-off-by: Ross Allan <rallanpcl@gmail.com>