Minimize locking in double_ended_queue::prepend