HPCC-8030 Java/Python/Javascript language support in ECL

Fix some threading issues in the Python embed plugin.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>