kmselement: Fix synchronization of buffers and events

Change-Id: Ib4a2fce3f44ada56cd5b632fc418fc880a5077e0