wakelock: fix Kernel error when compiling with CONFIG_WAKELOCK_STAT=n