JBIDE-16723 : fix invalid thread access causing stack overflow

Signed-off-by: Fred Bricon <fbricon@gmail.com>