I think it could be a buggy design? It must use some sort of magnet or proximity sensor to trigger it. So the field is probably strong enough to trigger it into a locked screen rotation.
There are few apps in Google play that can auto force screen rotation. Maybe see if that will help as a workaround?
Sorry, don't really have an answer to this and just taking a guess.