Slide a piece of cardboard under the door to protect the floor before you wrangle the door free. Before re-installing the door, make sure all hinges are in good working order, with nothing loose ...
WD-40 is best for light-duty lubrication and freeing up sticking or partially rusted hinges and latches ... locks as it wont attract dirt to fine lock mechanisms like an oil would.