Simplify code

- Use `detached` versions of `crypto_box` and `crypto_secretbox`. It removes code and doesn't require heap allocations and moving data around
- Sodium's function to get random numbers already use `arc4random` on OpenBSD
- Use `sodium_mlock` and `sodium_munlock` to protect secret keys (zeroing memory is not required, `sodium_munlock` does it)