Qualifying as a real estate pro may take sting out of losses on rentals