core.c: Fix ssa_extract_process_smdb() method

Function logic that was used for working with reference count
object as argument was fixed.

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