If it is locked out then it is basicly a heavy hardtail. It should be fine for short rides on the road. If you are going to be doing a lot of riding on the road I would go for a cheap road bike. No reason to wear out your components and tires riding on the road.
Kind of that whole right tool for the job thing.