Fix race conditions with MVar

Needed to empty MVar TodoList  before updating it.

Signed-off-by: Rohan Jain <crodjer@gmail.com>