Fix metadata dialog for read-only files/folders.

CORE-5106 Updated the metadata dialog to close without sending a service request when the user clicks "OK" for read-only files/folders.
CORE-5087 Externalized the error message for invalid metadata dialog for writable files/folders.