Exception when we didn't hold the wakelock and release was called.... check if we hold before releasing

Signed-off-by: mindstorms6 <breland@bdawg.org>