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.
Merge pull request #70 from juju/100-fix-issue-69

testing: fix MockCharmStore methods