added lock param to create_issuances