FREETOWN, Aug 10 (Reuters) - A military court in Sierra Leone has sentenced 24 soldiers to lengthy prison terms for their roles in a failed attempt to overthrow the government of President Julius Maada Bio last November.