To lock apps on your iPad, you can set its Screen Time feature for limiting app usage to passcode-protect apps, and customize ...
To sign out of iCloud on all of your devices at once, you can head to iCloud's website and change your password.