Added priority code to synchronization objects.
Added another priority test.