Changes for locking/unlocking a file

Added functionality for locking/unlocking a file in the SDK.