Asian stocks close Thursday with gains