core.c: Reset ssa_db_diff dirty flag if SMDB was not changed

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>