[U-Boot] [PATCH v2 3/7] bootcount: Add function wrappers to handle bootcount increment and error checking