Add isLocked function to API

This is useful to know if ```lockOrientation``` has ever been called.