Dynamical black hole masses of BL Lac objects from the Sloan Digital Sky Survey