Close the server socket in php bind stager

This was previously left dangling, which leaves the port open, but
doesn't do anything with subsequent connections.
Land all the commits on #3491, @jlee-r7's patch for php meterpreter