A limited partner may not withdraw from a limited partnership except at the time or upon the happening of events specified in the partnership agreement. Notwithstanding anything to the contrary under applicable law, unless the partnership agreement provides otherwise, a limited partner may not withdraw from a limited partnership before the dissolution and winding up of the limited partnership.