Locked files have an icon indicating it in the list view and the custom view only.
If a externally shared file is locked, there's no indicator in the grid view. Only the yellow link appears.
If a file is locked, it should be more visible.
Maybe some small changes would do the trick:
add a class to the row/card , if the file is locked. So we use css to style locked files the way we want