Modify ClusterMapAccess so that it is a singleton and is threadsafe. Add a test to check that it works