LPS-44908 Add upgrade process for thread priorities (and tests)