Adding metaboxes to attachment pages

get_post_meta returns an array when you set the 3rd parameter to false, so $value is an array in your metabox callback and you’re treating it as string. I assume an attachment has a single value for license, so you want to set that to true instead.