i2c, bootcount: add support for bootcounter on i2c devices