Set cutoff threshold for functions that rely on BLAS Level 1 routines (Close #6951)

This patch adds a threshold for ``scale!``, ``vecnorm1``, and ``vecnorm2``: they calls BLAS only when the array size is above a prefixed threshold.

This patch should fix ~~#6112~~ (#6951), and ensure that these functions perform reasonably well even for small arrays.