I don't know if it's the fact that its Monday, age-related or what but
reading ibm api info today is making me sleepy.
Must need some coffee before looking further.
Take a look at Retrieve Lock Information (QWCRLCKI) API -
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.