fix build for cray xc

Recent addition of libfabric embdded broke build on Cray XC/XE.
This commit fixes this problem.
Per contribution from Pascal Deveze of Bull: move opal_set_using_threads earlier in MPI_Init (before datatype init) so the value gets set in time to be properly used.