Safety check
Perform thread locking in remove()