...but that the government had just declared this practice illegal, and these methods were now a thing of the past.
I even managed to obtain an official document, shown here, which states clearly in English and Arabic that, since September 2003, hotels and other accommodation providers were no longer entitled to retain foreigners' passports... Phew!
In practice, over the following weeks, I still had to fight more than once to keep my passport.
Fortunately, this document proved invaluable.
Moral of the story: don't let people push you around!