use threads mutex for insert and remove