fakedb: provide a way to check the foreign key consistancy

this will avoid some bad surprise when hacking the db api testsuite

At the moment, if I activate the check globally there are 900 errors.

So we can activate it progressively if this is really needed

Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>