Fix namespace induced regression in closure detection.