Fix waiter_register return value