test: make test-worker-prof more robust
Use a JS workload instead of repeating FS operations to make it less flaky on machines with little resources. Refs: https://github.com/nodejs/node/issues/26401 Refs: https://github.com/nodejs/reliability/issues/640