persistent-events: fix build without lmbd