lua: wrap thread_set_priority with #ifdef HAVE_PRIORITY_SCHEDULING

Should fix a compile-time error on simulator.

Change-Id: I5962479579350ebffe6dcce4f65a629b108ff936
1 file changed