[CDI] fix concurrent modification error on Java 10 Signed-off-by: Raymond Auge <rotty3000@apache.org>