Revert "Replace global user functions with WT_User class" - submitted to wrong branch

This reverts commit 04e895d26b4a0f606b8f83488ecb32127df081cf.