ISPN-2720 StateTransferPessimisticTest.testStateTransfer fails randomly

Tests need to avoid taking into account expired entries when checking effective number of owners by looking directly into data container. Same issue also appears in MainOwnerChangesPessimisticLockTest. 

Also fixes a broken format for a trace log: ISPN-2770.

JIRA: https://issues.jboss.org/browse/ISPN-2720 ,
         https://issues.jboss.org/browse/ISPN-2770 

Pls integrate t_2720_m in master and t_2720_52 in 5.2.x.