Fixed memory accounting bugs.
Only call getFrameNo() if the frame is present.
Print getProgram() for demandload-failures, not getCommand().
Improved debugability.

Now if panic() was called, we always get locks and mutexes,
independent of whether they're currently in use or not. This
prevents the common problem that we can't see e.g. the region
list because we grabbed the region lock before we caused
a panic.