OSPRDIOCACQUIRE code added
added some code to check for deadlocks in the lock acquiring block of code.