Leicester's Championship play-off hopes were dealt another major blow as they suffered a 2-0 defeat at Barnsley.