Where I live, the interpretation is that if you give up custody of your bitcoin to the lender to take a loan against them, it's the same as if you had sold your bitcoin and you need to pay capital gains tax.