Well in theory it could work yes. Since Trace copies a random Pokemon's ability it could get Wonder guard and if it uses role play the Spiritomb/Sableye could get wonder guard.
In practice it wouldn't work because Role play will fail when trying to copy Wonder guard, which is a smart thing that GF did.
Anyways, this is a PS! replay of me testing it with a friend.
Additional info:
>Trace cannot copy Trace, Multitype, Illusion, Flower Gift, Imposter, or Stance Change; however, Trace can copy Wonder Guard.
However,
>Role Play cannot copy Zen Mode, Wonder Guard, Multitype, Imposter, Illusion or Stance Change.
Credit goes to my science partner pancakez o3o!
Hope I helped!