Before this patch, and after transaction support had been added #24258,
if the server had not removed old parts on shutdown, then they will left
forever.
Fixes: #24258 (cc @tavplubix)
v2: use Tx::PrehistoricTID over removePartsFromWorkingSet() from ctor
v3: apply black to new test
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>