Added synchronized block for add and remove token

To avoid duplication while highly concurrent execution.