flock You can't unroot the device once you root it, unless you reinstall the operating system (which requires a factory reset and will remove any changes to the filesystem you made). To even attempt to root requires the bootloader unlocked, which wipes the phone for security reasons.
It's just not possible unless you fork, and you don't want to fork, so I would just not try it