FUSE: cache: share sqlite connection between metadata/history cache
Since metadata and history already share the same database, it makes sense to share the connection as well, to prevent unnecessary locking on the db file.
Related to #2830 (closed).
Migrated from D4801 (view on Phabricator)