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

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.