The existing API don't work here since they try to open the file with all permissions (read/write/delete) and since the file is (might be) locked and only shared for read/write, it fails to do so.