Add mutex to lock pools while updating