The builder object sometimes loses the custom_namespace attribute in threadsafe mode #998

I've added a failing spec to trigger the custom_namespace error on the form builder as discussed in issue #998