Fixed lock free queue from a bug, still can't test it since it requires gcc 4.9