Fix typo in sysctl check condition and catch up with lastest api

(cherry picked from commit 45ad7c1f4a998e9b1c8dba0db967557fa0be4161)