The official position from MP is that you can not, in any way, upgrade a codeshare flight (United number on LH Metal). This will really be up to the LH TAs at the time of the flight. If you use a SWU, my guess is that they will let you upgrade as standby, but as I said, that's just a guess.