DAL/Tests: fix slots_headers_tracking test
This MR does two thinks, for the same DAL test:
- (last commit) It fixes flakiness by correctly waiting for the DAL node to finish processing some block.
- (first commit) It fixes the checking of header statuses, which was buggy (twice, thus not detected).