3928. [test] Improve rndc system test. [RT #36898] (cherry picked from commit 2401ee51d83a4cd9101398f30679fa4e6046c582)