The last two times I've visited Marrakech I've stayed in Hotel Ali on the edge of Djemma El Fna which is in the pedestrian precinct. Bikes are allowed in the precinct, so I just park up outside the hotel, lock the bike and walk away.
If it worries you, find somewhere with a 'guardian' who will probably want 50 dh to look after your vehicle but shouldn't be paid more than 10.
"For sheer delight there is nothing like altitude; it gives one the thrill of adventure
and enlarges the world in which you live,"
Irving Mather (1892-1966)
Access the Morocco Knowledgebase