GPIO interface-related orientation fixes

Adding acquire_bus() and release_bus() so that orientation setting commands are not ignored.