ssa.c: Implement (SM)DB lifecycle support for distribution and access nodes

Destroy previous SMDB after ready is indicated.

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