fixed performance issue with prioritizing policy

this patch fixes an issue with the prioritizing policy where the
low-priority cache could slow down the performance of dequeue
operations to the point where the system seems to stop;
this patch also removes the implicit addition of the priority_aware
flag whenever the detached flag is used