[PATCH 5.2 172/313] closures: fix a race on wakeup from closure_sync