Fix systemMask on Linux (#12387)
Fix systemMask on Linux (#12387)

* fix systemMask

* code refactor

parjong/coreclr,gkhanna79/coreclr,pgavlin/coreclr,cydhaselton/coreclr,rartemev/coreclr,JosephTremoulet/coreclr,ruben-ayrapetyan/coreclr,hseok-oh/coreclr,YongseopKim/coreclr,cshung/coreclr,yizhang82/coreclr,tijoytom/coreclr,dpodder/coreclr,russellhadley/coreclr,botaberg/coreclr,wateret/coreclr,hseok-oh/coreclr,JosephTremoulet/coreclr,wtgodbe/coreclr,cshung/coreclr,botaberg/coreclr,gkhanna79/coreclr,tijoytom/coreclr,krk/coreclr,russellhadley/coreclr,tijoytom/coreclr,pgavlin/coreclr,ragmani/coreclr,dpodder/coreclr,cshung/coreclr,AlexGhiondea/coreclr,JosephTremoulet/coreclr,gkhanna79/coreclr,kyulee1/coreclr,wateret/coreclr,tijoytom/coreclr,mskvortsov/coreclr,wtgodbe/coreclr,yizhang82/coreclr,YongseopKim/coreclr,kyulee1/coreclr,yizhang82/coreclr,mmitche/coreclr,YongseopKim/coreclr,russellhadley/coreclr,dpodder/coreclr,JonHanna/coreclr,ragmani/coreclr,mskvortsov/coreclr,parjong/coreclr,dpodder/coreclr,cshung/coreclr,cshung/coreclr,hseok-oh/coreclr,mmitche/coreclr,mmitche/coreclr,ruben-ayrapetyan/coreclr,wtgodbe/coreclr,JonHanna/coreclr,krk/coreclr,cydhaselton/coreclr,cshung/coreclr,pgavlin/coreclr,cydhaselton/coreclr,wateret/coreclr,russellhadley/coreclr,poizan42/coreclr,mmitche/coreclr,YongseopKim/coreclr,botaberg/coreclr,poizan42/coreclr,hseok-oh/coreclr,botaberg/coreclr,AlexGhiondea/coreclr,tijoytom/coreclr,poizan42/coreclr,gkhanna79/coreclr,cydhaselton/coreclr,yizhang82/coreclr,yizhang82/coreclr,JosephTremoulet/coreclr,kyulee1/coreclr,pgavlin/coreclr,poizan42/coreclr,rartemev/coreclr,kyulee1/coreclr,ruben-ayrapetyan/coreclr,wtgodbe/coreclr,parjong/coreclr,gkhanna79/coreclr,pgavlin/coreclr,mskvortsov/coreclr,AlexGhiondea/coreclr,cydhaselton/coreclr,YongseopKim/coreclr,poizan42/coreclr,rartemev/coreclr,JonHanna/coreclr,AlexGhiondea/coreclr,krk/coreclr,mskvortsov/coreclr,krk/coreclr,krk/coreclr,mskvortsov/coreclr,cydhaselton/coreclr,JonHanna/coreclr,botaberg/coreclr,wtgodbe/coreclr,ragmani/coreclr,dpodder/coreclr,hseok-oh/coreclr,yizhang82/coreclr,russellhadley/coreclr,JosephTremoulet/coreclr,mskvortsov/coreclr,wateret/coreclr,wateret/coreclr,rartemev/coreclr,hseok-oh/coreclr,kyulee1/coreclr,tijoytom/coreclr,wateret/coreclr,ragmani/coreclr,ragmani/coreclr,JonHanna/coreclr,ruben-ayrapetyan/coreclr,JosephTremoulet/coreclr,dpodder/coreclr,AlexGhiondea/coreclr,ruben-ayrapetyan/coreclr,AlexGhiondea/coreclr,ruben-ayrapetyan/coreclr,russellhadley/coreclr,parjong/coreclr,rartemev/coreclr,parjong/coreclr,botaberg/coreclr,ragmani/coreclr,parjong/coreclr,mmitche/coreclr,YongseopKim/coreclr,JonHanna/coreclr,rartemev/coreclr,krk/coreclr,gkhanna79/coreclr,kyulee1/coreclr,wtgodbe/coreclr,mmitche/coreclr,pgavlin/coreclr,poizan42/coreclr