Cover OS-specific behaviour in `PurePathBase` and `PathBase` tests. (#114633) Wherever possible, move tests for OS-specific behaviour from `PurePathTest` and `PathTest` to `DummyPurePathTest` and `DummyPathTest`.