daemon/session: move write_queue_size to session
This change is prerequisite for further refactoring needed to unify TCP-layer of TLS and the future (plain) HTTP protocol (!997 (merged)).
If I'm correct, these changes don't break any exposed or internal ABIs, so it should be safe to merge.