[PATCH] crypto: avoid unnecessary work when self-tests are disabled