While the likes of 50 Cent spin gangsta fantasies, rapper K’Naan has the brutal realities of life in war-torn Mogadishu to draw on. Robin Denselow meets Somalia’s hip-hop traveller