parted: fix build with readline>=6.3 (v2).