I have also seen a recent case where they forced someone to give up their password. So I'm not sure you are safe either way.
A police officer on the side of the road can't compel someone to unlock their phone to perform a warrantless search.
That being said, they can't legally do this.