lib:crypto: Add error checking to GKDI key start time calculation