OS-1988 Make ldi_ev_remove_callbacks safe to use in LDI callbacks
Reviewed by: Robert Mustacchi <rm@joyent.com>