* aix-thread.c (aix_thread_wait): Add options parameter. Use it