use critical section to protect Rf_mkChar
implement ompBase64Decode