The required lighting outlet for areas with equipment is definitely not required to be on a dedicated circuit. It can be on any general circuit.
Same goes for the receptacle. It is not required to be dedicated, but typically this is. This receptacle is required for unfinished basement areas. It's not required to be at the panel, but usually this is the easiest place to put it.
2011 NEC
III. Required Outlets
210.70 Lighting Outlets Required
(A) Dwelling Units.
In dwelling units, lighting outlets shall be installed in accordance
with 210.70(A)(1), (A)(2), and (A)(3).
(3) Storage or Equipment Spaces.
For attics, underfloor spaces, utility rooms, and basements, at least
one lighting outlet containing a switch or controlled by a wall switch
shall be installed where these spaces are used for storage or contain
equipment requiring servicing. At least one point of control shall be
at the usual point of entry to these spaces. The lighting outlet shall
be provided at or near the equipment requiring servicing.
2011 NEC
III. Required Outlets
210.52 Dwelling Unit Receptacle Outlets
(G) Basements, Garages, and Accessory Buildings.
For a one-family dwelling, the following provisions shall apply:
(1) At least one receptacle outlet, in addition to those for specific equipment, shall be installed in each basement, in each attached
garage, and in each detached garage or accessory building with
electric power.
(2) Where a portion of the basement is finished into one or more habitable rooms, each separate unfinished portion shall have a
receptacle outlet installed in accordance with this section.
Article 100 of the 2014 NEC is on point for you:
Readily Accessible Capable of being reached quickly for operation,
renewal or inspection without requiring those concerned to use a tool,
to climb over, remove an obstacle or other.
But personally I'd move the outlet using an old-work box then cut a matching hole in the back of the bookcase. If it's a normal stud wall construction you've got a 14 inch wide cavity to work with (subject to a wire length constraint). One day you may appreciate having available electric power within the bookcase wall... lighted nick-naks anyone?
Or, move the outlet to the other side of the wall (per @TomG).
Abandon in place is possible, but beware that the wires might daisy chain to other outlets. Any junction of any wires must itself be accessible by the above definition. You can't really win :-). If you want to abandon, places like the Berkeley Tool Library rent or loan circuit finders. These come in two halves: one half plugs into the hot outlet, the other is a sensor that can trace the matching wire or breaker.
Best Answer
Of course, the ground wire or 3rd wire is desirable & preferred. If you can't ground the circuit or can't afford an Electrician to do so or to re-wire the circuit, then it's fine to use. A GFCI will work anywhere & still provides protection without the ground wire. They're specifically approved for ungrounded old homes, but it won't pass a plug-in tester's scrutiny.
Here's a good article on the subject for your understanding.