ota: check if system is mounted before unmounting @timduru

Conflicts:
	releasetools/p990-newbl_ota_from_target_files

Change-Id: I9128b51c06897c300293a70cbab5f941f728079f