Prince Harry loses bid to challenge UK govt over security