fix style and return 0 when lthread_poll timeout