bootcontrol: Reduce the number of writes in the set active slot function
am: 2a276b35e0

Change-Id: Ie74bdf8c2797d36d37bb46098d7dbd6375d6bac2