A man convicted of raping and murdering a four-year-old boy in a Dubai mosque is sentenced to death.