msm_shared: Move the method set_os_version_with_date inside #if

Use the method set_os_version_with_date, which tries to
access the field of osversion from boot image header, only
when OSVERSION_IN_BOOTIMAGE is defined in make file.

Change-Id: If087f1173b2c3fd86f2ebd263227013705b97224
1 file changed