build: check if braces are needed for PTHRAED_ONCE_INIT.

On some versions of solaris, braces are required around the PTHREAD_ONCE_INIT
macro. But apparently not all versions. How fun!