fix GEOS-5995-deadlock setting spring to 3.1.4

backport to 2.4.x branch:

http://jira.codehaus.org/browse/GEOS-5995