core.c: Move up ssa locking in plugin initialization order

Avoid calling ssa_init and using ssa_log if another instance of ssa
is running.

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