core.c: Raise 'first_extraction' flag in the case of SM state change event

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