Use libc rename() calls rather than QFile to simulate renames
QFile::rename() changed its implementation in Qt6 apparently and it no longer produces inotify rename events, which breaks the test there.
As this test is Linux-only anyway, not using QFile shouldn't be a problem here.