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