Fixed a thread safety issue which could have caused a memory leak now that project node listeners are actually registered.