MDL-49399 core: Allow creation of a new per-request basedir