Removed dispatch_sync from closeDB

`dispatch_sync` was being called within an existing `dispatch_sync` call inside the `closeDB` method which lead to a `semaphore_wait_trap`. See #67.

Removed `dispatch_sync` call from closeDB method.