Maybe I'm missing something, but you're saying it's a local vuln, why don't you test it?
What you're trying to do is calling setreuid syscall. Take a look at the following excerpt from its man page:
A process with appropriate privileges can set either ID to any value. An unprivileged process can only set the effective user ID if the euid argument is equal to either the real, effective, or saved user ID of the process.
I might be wrong, but this makes me believe that it won't give you what you'd like.