ISPN-5023 Random Failues on *FactoryBeanTest in the Spring Modules

Remove the test cache manager factories and test the production ones
directly.
Test that replaying a prepare command doesn't acquire the lock twice