Add locked attribute to assets.