Lock outBuffer when sending.