ssa.c: Some code refactoring into ssa_downstream_[sm pr]db_update_ready

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