[PATCH v6 09/10] entry: Add has_syscall_work() helper