Added Android lock/unlock feature: #3342 Fix

I got this working.  Tests require pending changes to wd project.  We'll need client and doc changes for this as well, but wanted to go ahead and get it up for @austenke to look over if he has time.

Also, @austenke please lmk if you worked on the docs or any clients.
Function is copied but callback parameters are new.