[net/session] replace lambda function by std::bind()