opkg: MEIP-275- re-work on opkg lock file patch

Apply opkg lock file patch only when ro rootfs is configured

Signed-off-by: Sanjeev Chugh <sanjeev_chugh@mentor.com>