workerpool: Add method to change task's priority