@Kafka I suspect that this bug has been reintroduced with the 5.3 client, which I am using on an Amazon Kindle Fire.
I decided to use a couple of Fireballs to finish mapping floor 25. The first worked without a problem revealing a magic scroll, the second caused the game to hang as reported above with a room containing an unlock scroll.