test: work around ENOTEMPTY when cleaning tmp dir
Replace the homegrown rimrafsync implementation in test/common with
a call to fs.rmdirSync(path, { recursive: true })
.
Fixes: https://github.com/nodejs/node/issues/30620 Fixes: https://github.com/nodejs/node/issues/30844
cc @joaocgreis