ARROW-9597: [C++] AddAlias in compute::FunctionRegistry should be synchronized
ARROW-9597: [C++] AddAlias in compute::FunctionRegistry should be synchronized

Closes #7861 from tianchen92/ARROW-9597

Authored-by: tianchen <2077f170e8c24b460b7af07e552d8c05d4840c6b@apache.org>
Signed-off-by: tianchen <f328ad194fc0e3fc13d1a6206a6c280c752b1581@alibaba-inc.com>

xhochy/arrow,cpcloud/arrow,xhochy/arrow,wesm/arrow,laurentgo/arrow,apache/arrow,wesm/arrow,wesm/arrow,apache/arrow,wesm/arrow,cpcloud/arrow,kou/arrow,laurentgo/arrow,xhochy/arrow,icexelloss/arrow,xhochy/arrow,icexelloss/arrow,wesm/arrow,icexelloss/arrow,xhochy/arrow,icexelloss/arrow,laurentgo/arrow,apache/arrow,laurentgo/arrow,laurentgo/arrow,kou/arrow,cpcloud/arrow,kou/arrow,apache/arrow,xhochy/arrow,kou/arrow,xhochy/arrow,xhochy/arrow,wesm/arrow,cpcloud/arrow,laurentgo/arrow,xhochy/arrow,wesm/arrow,apache/arrow,icexelloss/arrow,xhochy/arrow,wesm/arrow,apache/arrow,cpcloud/arrow,icexelloss/arrow,icexelloss/arrow,kou/arrow,wesm/arrow,apache/arrow,xhochy/arrow,xhochy/arrow,kou/arrow,apache/arrow,kou/arrow,kou/arrow,cpcloud/arrow,wesm/arrow,icexelloss/arrow,xhochy/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,laurentgo/arrow,cpcloud/arrow,kou/arrow,cpcloud/arrow,xhochy/arrow,laurentgo/arrow,wesm/arrow,laurentgo/arrow,cpcloud/arrow,apache/arrow,laurentgo/arrow,xhochy/arrow,laurentgo/arrow,kou/arrow,apache/arrow,kou/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,cpcloud/arrow,wesm/arrow,laurentgo/arrow,laurentgo/arrow,icexelloss/arrow,apache/arrow,cpcloud/arrow,cpcloud/arrow,kou/arrow,kou/arrow,cpcloud/arrow,cpcloud/arrow,wesm/arrow,wesm/arrow,laurentgo/arrow,laurentgo/arrow