lib/ldb: add forward declaration for struct event_context