java-dest: do not try to attach in case of threaded(no) option,

without this patch the java destination goes into deadlock.

Signed-off-by: Juhász Viktor <viktor.juhasz@balabit.com>