Bugfix for hanging `drain' commands. If the output is already drained, nothing will ever clear AF_DRAIN, so don't set it in that case.