The former New South Wales detective has lost his appeal against a criminal conviction for illegally recording conversations during the William Tyrrell investigation.