build: introduce register_patch() which writes all patches into the image at /etc/openwrt_patches