In asSubByteBuff, we work on the duplicate BB and set limit and position on that.. The locking is not needed here.
The locking is added because we set limit and position on the BBs in the array. We can duplicate the BBs and do positioning and limit on them. The locking can be fully avoided.