Workaround for Cache::write() call from DboSource::__destruct()
Workaround for Cache::write() call from DboSource::__destruct()

Closes #7559

et304383/passbolt_api,et304383/passbolt_api,et304383/passbolt_api,et304383/passbolt_api,et304383/passbolt_api