Test code create lock for jms topic