Effect of mesoscopic inhomogeneities on the critical current of bulk melt-textured YBCO