[sqlite] Use an atomic implementation on sqlite for insertIfNotExist() + use it in the file cache ...