Disable statsd and make StatsLog no-op if ro.statsd.enable=false

Bug: 79324611
Test: manually tested on marlin_svelte
Change-Id: Ic7fbf86d7c295cb6b2f20e7f9a957d1ed74c42c0
diff --git a/cmds/statsd/statsd.rc b/cmds/statsd/statsd.rc
index f349292..cbf2a8d 100644
--- a/cmds/statsd/statsd.rc
+++ b/cmds/statsd/statsd.rc
@@ -19,6 +19,9 @@
     group statsd log
     writepid /dev/cpuset/system-background/tasks
 
+on property:ro.statsd.enable=false
+    stop statsd
+
 on post-fs-data
     # Create directory for statsd
     mkdir /data/misc/stats-data/ 0770 statsd system