sepolicy: Rule for CM's perfd extension

Manual apply and refactor of cm-12.1 patch:
e04329df88211264e7a9c8f1d6b87a16d8d5639b

Use the unix_socket_connect macro and switch to the new
perfd domain.

Change-Id: Ibb83220b32bad7805653140751c978e629f87ffb
diff --git a/sepolicy/qcom/perfd.te b/sepolicy/qcom/perfd.te
index 2702782..dd11d84 100644
--- a/sepolicy/qcom/perfd.te
+++ b/sepolicy/qcom/perfd.te
@@ -3,3 +3,5 @@
 # read mediaserver status
 allow perfd mediaserver:file { read open };
 
+#cm extra opts
+unix_socket_connect(perfd, thermal, thermal-engine)