Add mutex to arraylist type