TOMEE-1249 allow to change lock for stateful beans

git-svn-id: https://svn.apache.org/repos/asf/tomee/tomee/trunk@1602336 13f79535-47bb-0310-9956-ffa450edef68
ensuring we don't get any warning using new LockFactory property for stateful container

git-svn-id: https://svn.apache.org/repos/asf/tomee/tomee/trunk@1602340 13f79535-47bb-0310-9956-ffa450edef68