tests: use more portable mkdir -p instead of --parents (issue6591)

Differential Revision: https://phab.mercurial-scm.org/D11755
17 jobs for branch/stable in 55 minutes and 29 seconds (queued for 3 seconds)