using a ConcurrentHashMap in FileModificationRegistry to prevent conccurent modification exceptions - fixes #1122