Locked message priority queue