Improve the robustness of PartialCompactionFailure test again.

Summary:
Improve the robustness of PartialCompactionFailure test again.

Test Plan:
./db_test