Fix data race with services map.

Several threads add items to the map without mutex D: How has it been working before?