[test][docker_execution] Redo database root_folder setup after prefix cleanup
The prefix is resynced after the CXX tests, therefore ensure that the original root_folder setup is applied again. This avoids breaking tests when CXX tests run before the raw access tests.