Separate 'progress total' and 'pending number of bytes'

- Reverted the recent changes in AbstractChannel.calculateMessageSize()