[PLAT-6417] Allow ResolutionFailureAccumulator to be used by multiple threads.

The refactoring from PLAT-3692 lost the synchronization. This can manifest as incorrect gathering of failure notices, from corruption of the ArrayList, in the dependency graph debugging trace. Additional Javadoc added to ResolutionFailureListener to prevent similar issues in the future.
Reviewed-by: Tim Raggatt