APM: fix deadlock in APM_IOC_SUSPEND ioctl