plugin/core.c: fix seg fault on OSM_EVENT_ID_UCAST_ROUTING_DONE

caused by wrong context interpretation

Issue was found by Lenny's verification system.

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