all - add thread safe version moc_xxx_r() for moc server