selftest/dbcheck: add a test for corrupt forward links restoration