ISPN-4678 Trim down ExpandableMarshalledValueByteStream to the actual data length before storing in cache
Test that replaying a prepare command doesn't acquire the lock twice