Protect fieldmapCache with an RWMutex

Fixes #30