MULE-7011: Implementing clear() in queues