utils_cache: Unlock the cache mutex before returning in an error condition.