fix concurrency issues in bytesboundedlinkedqueue