move first trace hook calls earlier
protect output surface by mutex
use global.glx_ctx_stack_mutex as global mutex for own X connection
drop vdpau-locking.c
add optional timestamps to trace output