Merge "clone the visibility objects for the handler thread" into pi-dev