A Turkish court handed down life sentences to seven people with links to al-Qaeda for carrying out four suicide bombings in Istanbul three years ago that killed 64 people.