core: Update image statuses to OK on upgrade.

Update statuses from LOCKED to OK only if no tasks
exists, and use it on each upgrade with no specific flag.

Change-Id: I31c6437ef4d757d9ec59ef93cb448735fc741a28
Signed-off-by: Maor Lipchuk <mlipchuk@redhat.com>