Does this assignment need to be locked against the function that returns the handler?