(c) A security interest taken to secure any payment for the performance of any act or contract for which a license is required by this chapter is unenforceable if the person performing the act or contract was not a duly licensed contractor at all times during the performance of the act or contract.