fixed lock type selection, implementing pool lock