John Lydon loses court battle over Sex Pistols songs