Wordpress is lightweight? 5.9 download is +19.7M zipped and that's without any plugins. The lock in to the Wordpress framework. Not sure whether that qualifies as "vendor" lock in but it's pretty big dep that's impossible to break out of if you go beyond simple blog.
You can easily get locked in to some theme builder or UI toolkit. half the WP folks I know swear by X (genesis theme, etc) and will just rewrite everything in theme X if they take over a project. You're not 'locked in' to WP, you're 'locked in' to themes and plugins.
For what it's worth, I'm running the absolute cheapest DigitalOcean droplet money can buy ($5/mo) and that comes with 25GB of NVME storage as standard.