flushMethodCache not working if called before cacheMethod

When calling flushMethodCache it correctly empties self::$methodCache but if cacheMethod is called afterwards self::$methodCache gets populated with data from the Cache.
Test case for DboSource::flushMethodCache
Merge pull request #1631 from ovidiupruteanu/patch-2

flushMethodCache not working if called before cacheMethod