shared/ssa_db.c: crash fix

The crash was caused by 'for' loop iterator (i) of unsigned type

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>