Remember started state in cern.cpymad.libmadx

This improves "Enable sharing connections to remote process" (15f7a8a).