H5T_LOCK locks the datatype specified by thedtype_ididentifier, making it read-only and non-destructible. This is normally done by the library for predefined datatypes so the application does not inadvertently change or delete a predefined type. Once a datatype is locked it can never be unlocked.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.