hash: fix TSX aborts with newer gcc