Interaction of cracks with rigid inclusions in longitudinal shear deformation