LPS-34899 Disable Security Manager when TCK is enabled

There's a bug with PACL so this won't work until http://issues.liferay.com/browse/LPS-34936 is merged (currently under Ray's review), however the patch can safely be merged.