more work on saving the lock/unlock mapping in an assoc list
more work on printing the mapped devices

printing the error message if unlocking a device failed also work.
had to check the process-status in a while loop.