Fix namespace pickling error

unpickling calls __setstate__ which doesnt exist,
so __getattr__ loops indefinitely.

Change-Id: I9c4977154cac92c84ac7a50ffe8e00366987aaa7