x11: api update
core: added basic lock-based message queue