Add OPTIMIZE item to kernel/ipc.h
Add mtx_trylock() and recursive locks
Fix call_once()
call_once(): we don't need that extra locking
Add some more or less proper event handling to ipc_pipeline()