testing: fix MockCharmStore methods

Fixes #69

The code inside juju expects that these methods behave like setters.

Also add a mutex to make updating these values safe for multiple goroutines.