config: use a rwmutex

In config, we almost always do read operations. A RWMutex makes total
sense :-)