Before update, first get the original author id:
$author= get_post_field('post_author', $post_id);
then switch the current user to author
wp_set_current_user($author);
Next update the post.