opencl: Make init_mtx static with volatile lock