Locking pins for retaining the sprue