Add method to remove specified thread message in the message queue.