If you define the logical SHOW$DEBUG to anything, then the SHOW DEVICE command will give a lot of debugging information about locking on the devices.