Compactness of commutators arising in the Fredholm theory of singular integral operators with shifts