Prevents further modifications from being made to the file.
- macOS 10.8+
The completion handler block object passed in to be invoked after locking is completed, regardless of success or failure of locking.
This method first locks the file at
[self file and then invokes the given block. The default locking implementation is to enable the “user immutable” flag on the file.