Bugfix/cache unittest

This addresses: https://github.com/redhat-imaging/novaimagebuilder/issues/3

When run in the unit test harness the MockStackEnvironment entry in sys.modules has a slightly different key.  After changing that, and fixing the first test such that it releases the lock, all seems to be well.