DERBY-6619 After silently swallowing SecurityExceptions, Derby can leak class loaders

Backported from trunk svn 1618955.

Patch derby-6619 which prints warnings on derby.log if permissions are
missing to get and set the context class loader in
SingletonTimerFactory (which can lead to classloader leak). Also adds
a test of this by checking derby.log in SecureServerTest.



git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/branches/10.11@1619008 13f79535-47bb-0310-9956-ffa450edef68