I solved it myself.
The solution is to add this line:
`
wp_safe_redirect( admin_url(‘/post.php?post=’. $post_id .’&action=edit’) );
`
after the update_post_meta().
I think that WooCommerce overwrites the meta-fields as a sort of ‘very-last-thing’, when running those actions.