libsurfaceflinger: fix screenshot permission check am: fc0b911090
am: fd630967bb

Change-Id: Ie3e87725d8c07bb72307229c65cf71ad54da28e8