[U-Boot] [PATCH v2 09/41] spl: bootcount: Move code out of header file