Added the necessary hooks to DNP3Manager/ThreadPool to perform proper 1 time Attach/Detach in JNI bindings