If rpm is truly busy, then you can do:
# kill [ some-pid ]
When you input ps, it will give you a list of currently running executable processes, along with their PIDs or Process IDs. Find which one rpm is using, say it's 1234 in this case, and replace [ some-pid ] with 1234, e.g. :
# kill 1234
And then try rebuilding the database again...