initialize mutex attributes before setting type