Server-side connection state during the three-way handshake

A server has called listen() and is blocked in accept(). A client calls connect(). The client's SYN reaches the server and the server's SYN-ACK reaches the client, prompting the client to send the final ACK, but that ACK is still in flight over the network. At this instant, what TCP state is the connection in on the server side, and where does it live?

client_server.cpp
// Server:
int lfd = socket(AF_INET, SOCK_STREAM, 0);
bind(lfd, (struct sockaddr*)&addr, sizeof(addr));
listen(lfd, 128);
int cfd = accept(lfd, NULL, NULL); // still blocked here

// Client:
int sock = socket(AF_INET, SOCK_STREAM, 0);
connect(sock, (struct sockaddr*)&addr, sizeof(addr));

3 of 45 in Networking