sample: add missing mutex init/destroy