St Mirren have struck a deal to take Newcastle defender Paul Dummett back to St Mirren Park on loan until the end of the season.