I figured out what is wrong.
First SIMCONNECT_GROUP_PRIORITY_DEFAULT should be SIMCONNECT_GROUP_PRIORITY_HIGHEST.
Second AUTOPILOT_OFF is not working. In documentation is supported but in reality is not. My code with AP_MASTER is working perfectly fine.