JBIDE-15616 ConcurrentModificationException in CDICoreBuilder

Access to build is synchronized by making the second thread
wait for the first. The waiting is implemented with Object.wait()
and Object.notifyAll(), which prevents lock of the first thread.
Test is added.