Maybe I'm missing something, but I don't see how this is any different from refusing to provide your password. Border Patrol may just detain you regardless of whether the issue is you aren't providing your password or you decided to make your device less accessible before going on your trip. Both are forms of trying to prevent them access to your device, which they won't like. The real solution seems to be changing the laws that allow them to get away with what they're doing.