apm-emulation: use wait_event_freezable() instead of freezer_[do_not_]count()