These three lines are critical, and we need something like them in the new version.

Either hide the share button when the current song has metadata.locked set, or display an alert if the user tries to share a locked song.  The first option is easier because it doesn't required UX work.