Define namespace outside of method to avoid recalculating
Define namespace outside of method to avoid recalculating

Since the method is defined as a closure, we can pre-calculate it and it
will always use that namespace. This should give a slight speed-up for
the getters and setters.

amarshall/thread_variable