raw: Add state to determine wether socket is bound or not.