Added outer lock loop to thread_get_priority_helper (). Tests still running cleanly